projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
139f7b1
)
fs/ext4: Initialize group descriptor size for revision level 0 filesystems
author
Stefan Brüns
<
[email protected]
>
Tue, 27 Dec 2016 01:35:08 +0000
(
02:35
+0100)
committer
Tom Rini
<
[email protected]
>
Tue, 27 Dec 2016 16:24:18 +0000
(11:24 -0500)
genext2fs creates revision level 0 filesystems, which are not readable
by u-boot due to the initialized group descriptor size field.
f798b1dda1c5de818b806189e523d1b75db7e72d
Reported-by: Kever Yang <
[email protected]
>
Reported-by:
[email protected]
Signed-off-by: Stefan Brüns <
[email protected]
>
Tested-by: Kever Yang <
[email protected]
>
fs/ext4/ext4_common.c
patch
|
blob
|
history
diff --git
a/fs/ext4/ext4_common.c
b/fs/ext4/ext4_common.c
index bfebe7e3799be3fa8735a2d8bdbc0dd6376863b2..621c61e5c7915529cf0bc92a7ab7d3fc31adc1c1 100644
(file)
--- a/
fs/ext4/ext4_common.c
+++ b/
fs/ext4/ext4_common.c
@@
-2334,6
+2334,7
@@
int ext4fs_mount(unsigned part_length)
if (le32_to_cpu(data->sblock.revision_level) == 0) {
fs->inodesz = 128;
+ fs->gdsize = 32;
} else {
debug("EXT4 features COMPAT: %08x INCOMPAT: %08x RO_COMPAT: %08x\n",
__le32_to_cpu(data->sblock.feature_compatibility),